/**
 * 
 */
package com.google.code.cisx.wfe.model;

/**
 * Work Item is defined as a {@link Task}/{@link Transition} that is enabled and
 * needs to be executed for a specific {@link CaseImpl}.
 * 
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @since 1.0
 * @version $Id: WorkItem.java 271 2009-01-27 14:10:12Z rahul.thakur.xdev $
 * 
 */
public class WorkItem<D> {

    private Case<D> kase;

    private Transition<?> transition;

    /**
     * @param kase
     * @param transition
     */
    public WorkItem(Case<D> kase, Transition<?> transition) {
        super();
        this.kase = kase;
        this.transition = transition;
    }

    /**
     * @return the kase
     */
    public Case<D> getKase() {
        return kase;
    }

    /**
     * @return the transition
     */
    public Transition<?> getTransition() {
        return transition;
    }

}
